<?php

namespace app\home\controller;
use app\common\model\Category as cattable;
use app\common\model\Goods as goodstable;
use think\Controller;
use think\Request;

class Base extends Controller
{
    // 查询分类信息
    public function __construct()
    {
        parent::__construct();
        // 查询分类信息
        $data = cattable::select();
        $data = get_tree_list($data->toArray());
        // dump($data);
        $this->assign('list',$data);// 赋值
    }
   
   
} 
